export type * from './Modal';
export {default as Modal} from './Modal.svelte';

import { mount } from 'svelte';
import usePortal from '../utils/usePortal';
import Modals from './Modals.svelte';

const ele = usePortal('cm-modal-portal-instance', 'cm-modal-portal');
export const modal = mount(Modals, {target: ele});